<table>
	<thead>
		<tr>
			<td>Név</td>
			<td>Leírás</td>
			<td>Kép</td>
			<td></td>
			<td></td>
		</tr>
	</thead>
	<tbody>

	<?php foreach ($devices as $device): ?>
		<tr>
			<td><?php echo $device->name ?>
			</td>
			<td><?php echo $device->description ?>
			</td>
			<td><?php echo $device->image ?>
			</td>
			<td><a href="<?php echo URL::site('device/edit/' . $device->id) ?>">Szerkesztés</a>
			</td>
			<td><a href="<?php echo URL::site('device/delete/' . $device->id) ?>">Törlés</a>
			</td>
		</tr>
		
		
<?php endforeach; ?>
</tbody>
</table>
<a href="<?php echo URL::site('device/new') ?>">Új Eszköz</a>